import {get,post} from '../../utils/request' 
import {addParams} from './type'
//获取列表信息
export const getList=(params:any):Promise<any> => get("administrator/list",params)
//单条删除
export const del=(id:number)=>get("administrator/delete",{id})
// //批量删除
// export const deleteAll=(ids:number[])=>post("news/deleteall",{ids})


//添加管理员
export const addData=(data:addParams)=>post("administrator/add",data)
